var express = require('express');
var router = express.Router();

router.get('/', function(req,res,next){
    res.send('/get方法');
});
router.post('/', function(req, res, next){
    res.json({code:200, data:'post methods'});
});
module.exports = router;